package com.cookie.meetproject.receiver;

import android.content.Context;

import io.rong.push.PushType;
import io.rong.push.notification.PushMessageReceiver;
import io.rong.push.notification.PushNotificationMessage;

/**
 * 项目名:    MeetProject
 * 包名:      com.cookie.meetproject.receiver
 * 文件名:    SealNotificationReceiver
 * 创建者:    cookie
 * 创建时间:   2020/1/12 22:17
 * 描述:      融云离线消息
 */

public class SealNotificationReceiver extends PushMessageReceiver {

    @Override
    public boolean onNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage pushNotificationMessage) {
        //返回false 会弹出融云SDK默认通知;返回true 融云SDK不会弹通知,通知需要自定义
        return true;
    }

    @Override
    public boolean onNotificationMessageClicked(Context context, PushType pushType, PushNotificationMessage pushNotificationMessage) {
        //返回false 会走融云SDK默认处理逻辑,即点击该通知会打开会话列表或会话界面;返回true,则由你自定义处理逻辑
        return true;
    }
}
